package com.project.common.exception;

/**
* @Description:   自定义登录异常
* @Author:         wangzhiqiang
* @CreateDate:     2019-02-22 18:08
* @Version:        1.0
*/
public class LoginException extends RuntimeException {

    private int code;

    /**
     * 带异常消息的构造
     * @param message 信息描述
     */
    public LoginException(String message)
    {
        super(message);
    }

    /**
     * 带异常消息何编号的构造
     * @param message 信息描述
     * @param code 编号
     */
    public LoginException(int code, String message)
    {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
